<{include 'header.tpl'}>
<body class="gray-bg">
<div class="wrapper wrapper-content">

    <div class="row">
        <div class="col-sm-5">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>搜索框</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="alert alert-info">
                        用户资金日志
                    </div>

                    <form role="form" class="form-horizontal m-t" action="index.php?c=index&a=userinfo">

                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">开始时间：</label>
                                <div class="col-sm-9">

                                    <input class="form-control layer-date" name="starttime"  placeholder="YYYY-MM-DD hh:mm:ss" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                                     <span style="color: red;" class="help-block m-b-none">默认系统初始时间</span>

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">结束时间：</label>
                                <div class="col-sm-9">
                                    <input class="form-control layer-date" name="endtime"  placeholder="YYYY-MM-DD hh:mm:ss" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                                      <span style="color: red;" class="help-block m-b-none">默认系统当天时间</span>

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">用户名：</label>
                                <div class="col-sm-9">
                                    <input type="text" name="username" class="form-control" placeholder="请输入用户名" >
                                    <span style="color: red;" class="help-block m-b-none">填写用户名</span>

                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group draggable">
                            <div class="col-sm-12 col-sm-offset-3">
                                <button id="search" class="btn btn-primary" type="button">查询</button>
                            </div>
                        </div>


                    </form>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>

        <div class="col-sm-7">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="row form-body form-horizontal m-t">
                        <div id="show" class="col-md-12 droppable sortable">

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $("#search").click(function(){
        var html = "<div class='ibox-content'><div class='spiner-example'><div class='sk-spinner sk-spinner-three-bounce'><div class='sk-bounce1'></div><div class='sk-bounce2'></div><div class='sk-bounce3'></div></div></div></div>";
       $("#show").html(html);
        var data = $("form").serialize();
        var url = $("form").attr("action");
        setTimeout(function(){
            $.post(url,data,function(e){
                var i = $.parseJSON(e);
                $("#show").html(i);
                });},1000);
    });
</script>
<{include 'footer.tpl'}>
